<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.3.1"/>
<title>Automatizacion de medición de susceptibilidad magnética: Fichero Fuente fLCD3bSDCC.h</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo-igl.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">Automatizacion de medición de susceptibilidad magnética
   &#160;<span id="projectnumber">0.7</span>
   </div>
   <div id="projectbrief">El firmware que a continuación se presenta, es para manejar un par de ejes lineales que se encuentran en una posición ortogonal, a fin de imitar el movimiento que realiza un operador cuando toma 100 muestras en un núcleo de mineral obtenido de paleo lagos</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generado por Doxygen 1.8.3.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Buscar');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Página&#160;principal</span></a></li>
      <li class="current"><a href="files.html"><span>Archivos</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Buscar" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Lista&#160;de&#160;archivos</span></a></li>
      <li><a href="globals.html"><span>Globales</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>Todo</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Archivos</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Funciones</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>&apos;typedefs&apos;</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumeraciones</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Valores de enumeraciones</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>&apos;defines&apos;</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">fLCD3bSDCC.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="f_l_c_d3b_s_d_c_c_8h.html">Ir a la documentación de este archivo.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="preprocessor">#ifndef fLCD3bSDCC_h</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define fLCD3bSDCC_h</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="preprocessor"></span><span class="comment">//</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;</div>
<div class="line"><a name="l00032"></a><span class="lineno"><a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#af20fb56f57dec296b1de086414907956">   32</a></span>&#160;<span class="preprocessor">#define LCD_DAT    LATAbits.LATA2            </span></div>
<div class="line"><a name="l00033"></a><span class="lineno"><a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#a38264e588baa4b608f2c5039941847d5">   33</a></span>&#160;<span class="preprocessor">#define LCD_CK     LATAbits.LATA1            </span></div>
<div class="line"><a name="l00034"></a><span class="lineno"><a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#a6ec15b1e813d1f56d2eb644a127e5d49">   34</a></span>&#160;<span class="preprocessor">#define LCD_E      LATAbits.LATA0            </span></div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00036"></a><span class="lineno"><a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#aadf79f08aa7bd6622d96ea86e0b5cbfd">   36</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define E_PIN  LCD_E</span></div>
<div class="line"><a name="l00037"></a><span class="lineno"><a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#adf73e2e9759477ffd0472a4147e48eea">   37</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define CK_PIN  LCD_CK</span></div>
<div class="line"><a name="l00038"></a><span class="lineno"><a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#a0e4e1e3e3be953864f931e22cb963134">   38</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define DAT_PIN LCD_DAT</span></div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00040"></a><span class="lineno"><a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#ae6e853502fc7cf69f444a9176c6a62b8">   40</a></span>&#160;<span class="preprocessor">#define confLCD_DAT    TRISAbits.TRISA2            </span></div>
<div class="line"><a name="l00041"></a><span class="lineno"><a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#aa840ac7f6e8b38376e20d984f4aa9bd6">   41</a></span>&#160;<span class="preprocessor">#define confLCD_CK      TRISAbits.TRISA1            </span></div>
<div class="line"><a name="l00042"></a><span class="lineno"><a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#a6e2126bc58bfcbf28c8b6390ac4e5ac6">   42</a></span>&#160;<span class="preprocessor">#define confLCD_E      TRISAbits.TRISA0            </span></div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00044"></a><span class="lineno"><a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#a1ef9e90842eba3efc4939c320e70e19e">   44</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define TRIS_E  confLCD_E</span></div>
<div class="line"><a name="l00045"></a><span class="lineno"><a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#ae3b911eebadecba9f8f1512337092720">   45</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define TRIS_CK confLCD_CK</span></div>
<div class="line"><a name="l00046"></a><span class="lineno"><a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#adda8a2f498dbd512fdb2175688195bf4">   46</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define TRIS_DAT confLCD_DAT</span></div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;</div>
<div class="line"><a name="l00100"></a><span class="lineno"><a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#a6aa8aa2057294b7d06088e834299b369">  100</a></span>&#160;<span class="preprocessor">#define LCD_CLEAR                0x01 // Clear Display</span></div>
<div class="line"><a name="l00101"></a><span class="lineno"><a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#ae0e309ccad89222eb3457f2da9f2bb8d">  101</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define LCD_HOME                0x02 // Cursor a Home</span></div>
<div class="line"><a name="l00102"></a><span class="lineno"><a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#af4487404d074c76fbf4161a2ad616133">  102</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define LCD_NORMAL              0x06 // Cursor en modo incrementar.</span></div>
<div class="line"><a name="l00103"></a><span class="lineno"><a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#ab57d92283aad9f113fba1b3819aa1ed6">  103</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define LCD_REV                  0x04 // Normal-reverse</span></div>
<div class="line"><a name="l00104"></a><span class="lineno"><a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#ad16b4d105103e6c94de211fdfe387fb2">  104</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define LCD_SCROLL              0x07 // Usa scroll</span></div>
<div class="line"><a name="l00105"></a><span class="lineno"><a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#aa686d228ddeae47bca52a7bc71260088">  105</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define LCD_SCROLL_REV          0x05 // Reverse</span></div>
<div class="line"><a name="l00106"></a><span class="lineno"><a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#a41794ec869f0118776757b55367ac8cf">  106</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define LCD_D8_BIT              0x38 // 8 bit 2 lineas ( 5x7 font )</span></div>
<div class="line"><a name="l00107"></a><span class="lineno"><a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#a4f601ab247d892dd185c8f7671dcc732">  107</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define LCD_D4_BIT_CONF          0x20 // 4 bit</span></div>
<div class="line"><a name="l00108"></a><span class="lineno"><a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#ab949a7a09457c20d779c6f7dbf07f896">  108</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define LCD_D4_BIT              0x28 // 4 bit 2 lineas ( 5x7 font )</span></div>
<div class="line"><a name="l00109"></a><span class="lineno"><a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#a597d93b1f461dfdcdc2a6110bcf83b43">  109</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define LCD_RESET                0x30 // Reset</span></div>
<div class="line"><a name="l00110"></a><span class="lineno"><a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#ae880f6f2b89c2c2c7c8f030a868edd10">  110</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define LCD_DIS_ON              0x0C // Display on modo 2 lineas</span></div>
<div class="line"><a name="l00111"></a><span class="lineno"><a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#a3a82933227a468ae767780cc9b4bff9f">  111</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define LCD_DIS_OFF              0x08 // Display off</span></div>
<div class="line"><a name="l00112"></a><span class="lineno"><a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#ac30f9eb729142201bec6ef0aa45e5c07">  112</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define LCD_LINE1                0x80 // Linea 1 posicion 1 1000 0000</span></div>
<div class="line"><a name="l00113"></a><span class="lineno"><a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#aee2c59879d4dca634a1ba6a2769e4ee6">  113</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define LCD_LINE2                0xC0 // Linea 2 posicion 1 1010 0000</span></div>
<div class="line"><a name="l00114"></a><span class="lineno"><a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#a3a2ee32835c7649e5da01563407d8665">  114</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define LCD_LINE3        0x94 //Linea 3 posicion  1</span></div>
<div class="line"><a name="l00115"></a><span class="lineno"><a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#a11fc99e0a8ac2eb3504e94b0a771234f">  115</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define LCD_LINE4        0xD4 //Linea 4 posicion  1</span></div>
<div class="line"><a name="l00116"></a><span class="lineno"><a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#a8dae7021acb10d4e5f8458a5fba78729">  116</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define LCD_CURSOR_ON            0x0E // Cursor on</span></div>
<div class="line"><a name="l00117"></a><span class="lineno"><a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#a7a6a930d205b2819be910af194576dca">  117</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define LCD_CURSOR_OFF          0x0C // Cursor off</span></div>
<div class="line"><a name="l00118"></a><span class="lineno"><a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#a654ab1d84354662d394a62be3b2230d1">  118</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define LCD_BLINK_ON            0x0F // Cursor blink</span></div>
<div class="line"><a name="l00119"></a><span class="lineno"><a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#a3d2d1e00c26b549a2e4dea5a4486ce3c">  119</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define LCD_CURSOR_DER          0x14 // Mover cursor derecha</span></div>
<div class="line"><a name="l00120"></a><span class="lineno"><a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#a70265836776d5309f83565554d34ce99">  120</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define LCD_CURSOR_IZQ          0x10 // Mover cursor izquierda</span></div>
<div class="line"><a name="l00121"></a><span class="lineno"><a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#a4a0c6b7cfae7bde17e94e45a068ebb2a">  121</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define LCD_DISPLAY__DER        0x1C // Scroll display derecha</span></div>
<div class="line"><a name="l00122"></a><span class="lineno"><a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#adb281baabc74c235591496b76b360d4f">  122</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define LCD_DISPLAY__IZQ        0x18 // Scroll display izquierda</span></div>
<div class="line"><a name="l00123"></a><span class="lineno"><a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#a16680e6a18dd96812af02eb0eaaa566a">  123</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define LCD_CHARMODE            0x01 //envia caracter</span></div>
<div class="line"><a name="l00124"></a><span class="lineno"><a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#ade18824d43ae8c08c02473b59e5c4e0c">  124</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define LCD_COMMANDMODE          0x00 //envia comando</span></div>
<div class="line"><a name="l00125"></a><span class="lineno"><a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#a33d32dcc3c21d853024f4064cf47c833">  125</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define LCD_CGRAM1        0x40 //primera direccion para CGRAM</span></div>
<div class="line"><a name="l00126"></a><span class="lineno"><a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#a018997a7c01af803e73282771bc32fb3">  126</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define LCD_CGRAM2        0x48 //segunda direccion para CGRAM</span></div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;</div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;<span class="keywordtype">void</span> <a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#a6842775ba83d166f02b8fef8bb63b1e6" title="lcd_init() funcion para inicializar la LCD">lcd_init</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;<span class="keywordtype">void</span> <a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#a72d929ba55e510e11b84550a601f9c38" title="void lcd_send(char mode char dato)">lcd_send</a>(<span class="keywordtype">char</span> mode, <span class="keywordtype">char</span> dato);</div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;<span class="keywordtype">void</span> <a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#a7cdf1d76c734edc7f15e925cd949b936" title="La funcion puts pone en cola de impresion a lcd una cadena de caracteres.">lcd_puts</a>(<span class="keywordtype">char</span> * ptr);</div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;<span class="keywordtype">void</span> <a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#a4f52c5062bc2bd1208d3f291e59c4340" title="void lcd_send quartet Esta función permite el envio de un nibble a través de las terminales definidas...">lcd_send_quartet</a>(<span class="keywordtype">char</span> mode, <span class="keywordtype">char</span> dato);</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;<span class="keywordtype">char</span> <a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#a620a9b97859a00ba9d25bd520bf5a173">lcd_hexa</a>(<span class="keywordtype">char</span> a);</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;<span class="keywordtype">void</span> <a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#afa7e36b95c43d603f510273ad077cbbe" title="Funcion que envia un caracter a la lcd o puede enviar caracteres especiales.">lcd_putc</a>( <span class="keywordtype">char</span> c);</div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;<span class="keywordtype">void</span> <a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#ab5955cef5afcf6d28b41015ecec95b4f" title="Funcion que permite personalizar la presntacion del cursor en el LCD.">lcd_setcursor_vb</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> visible, <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> blink);</div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;<span class="keywordtype">void</span> <a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#a54099c693a5c040647a1e971a61d19e5" title="funcion para posicionar el cursor del LCD en un localidad (x,y) particular la funcion esta preparada ...">lcd_gotoxy</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> x, <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> y);</div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;</div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;<span class="comment">//Cadena para enviar la inicializacion de la LCD</span></div>
<div class="line"><a name="l00145"></a><span class="lineno"><a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#a82fefca203b3328833e2f16cd169a1ed">  145</a></span>&#160;<span class="keyword">const</span> <span class="keywordtype">char</span> <a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#a82fefca203b3328833e2f16cd169a1ed" title="Seccion de funciones En esta seccion se encuentran las funciones necesarias para implementar la inter...">LCD_INIT_STRING</a>[]=</div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;{</div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;    <a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#ab949a7a09457c20d779c6f7dbf07f896">LCD_D4_BIT</a>, <a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#a6aa8aa2057294b7d06088e834299b369">LCD_CLEAR</a>, <a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#a7a6a930d205b2819be910af194576dca">LCD_CURSOR_OFF</a>, <a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#af4487404d074c76fbf4161a2ad616133">LCD_NORMAL</a>,</div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;    <a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#ae880f6f2b89c2c2c7c8f030a868edd10">LCD_DIS_ON</a></div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;};</div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;</div>
<div class="line"><a name="l00162"></a><span class="lineno"><a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#a4f52c5062bc2bd1208d3f291e59c4340">  162</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#a4f52c5062bc2bd1208d3f291e59c4340" title="void lcd_send quartet Esta función permite el envio de un nibble a través de las terminales definidas...">lcd_send_quartet</a>(<span class="keywordtype">char</span> mode, <span class="keywordtype">char</span> dato)</div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;{</div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;    <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> temp=0;</div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;    <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> mask=0;</div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;    <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> x=0;</div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;    <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> rs_pin;</div>
<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;</div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;    rs_pin = mode;</div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;</div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;    <span class="keywordflow">if</span>(rs_pin == 1)</div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;        dato |= 0x08;</div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;</div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;    <span class="keywordflow">for</span>(x=0;x&lt;5;x++)</div>
<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;    {</div>
<div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;        temp = dato;</div>
<div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;        mask = 0x01;</div>
<div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;        <span class="keywordflow">if</span>(x&lt;4)</div>
<div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;        {</div>
<div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;            mask = mask &lt;&lt;(x +4);</div>
<div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;            mask &amp;= 0xf0;</div>
<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;        }</div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;        <span class="keywordflow">else</span></div>
<div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;        {</div>
<div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;            mask = 0x08;</div>
<div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;        }</div>
<div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;</div>
<div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;        temp &amp;= mask;</div>
<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;        <span class="keywordflow">if</span>(mask == 0x08) temp = temp &gt;&gt; 3;</div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;        <span class="keywordflow">else</span> temp = temp &gt;&gt; (x + 4);</div>
<div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;        temp &amp;= 0x01;</div>
<div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;        <a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#a0e4e1e3e3be953864f931e22cb963134">DAT_PIN</a> = temp;</div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;        <a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#adf73e2e9759477ffd0472a4147e48eea">CK_PIN</a> = 0;</div>
<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;        <a class="code" href="delay16_8c.html#a8aa473f8ae9a91df4bc9ea700983c72d">delay_ms</a>(2);</div>
<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;        <a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#adf73e2e9759477ffd0472a4147e48eea">CK_PIN</a> = 1;</div>
<div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;        <a class="code" href="delay16_8c.html#a8aa473f8ae9a91df4bc9ea700983c72d">delay_ms</a>(2);</div>
<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;    }</div>
<div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;</div>
<div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;    <a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#aadf79f08aa7bd6622d96ea86e0b5cbfd">E_PIN</a> = 1;</div>
<div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;    <a class="code" href="delay16_8c.html#a8aa473f8ae9a91df4bc9ea700983c72d">delay_ms</a>(1);</div>
<div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;    <a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#aadf79f08aa7bd6622d96ea86e0b5cbfd">E_PIN</a> = 0;</div>
<div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;}</div>
<div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;</div>
<div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;</div>
<div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;</div>
<div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;</div>
<div class="line"><a name="l00213"></a><span class="lineno"><a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#a72d929ba55e510e11b84550a601f9c38">  213</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#a72d929ba55e510e11b84550a601f9c38" title="void lcd_send(char mode char dato)">lcd_send</a>(<span class="keywordtype">char</span> mode, <span class="keywordtype">char</span> dato)</div>
<div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;{</div>
<div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;    <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> temp;</div>
<div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;            <a class="code" href="delay16_8c.html#a8aa473f8ae9a91df4bc9ea700983c72d">delay_ms</a>(2 );</div>
<div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;            <a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#aadf79f08aa7bd6622d96ea86e0b5cbfd">E_PIN</a> = 0;</div>
<div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;</div>
<div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;            temp = dato;</div>
<div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;            temp &amp;= 0xf0;</div>
<div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;            <a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#a4f52c5062bc2bd1208d3f291e59c4340" title="void lcd_send quartet Esta función permite el envio de un nibble a través de las terminales definidas...">lcd_send_quartet</a>(mode, temp);</div>
<div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;            temp = dato;</div>
<div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;            temp = temp &lt;&lt;4;</div>
<div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;            temp &amp;=0xf0;</div>
<div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;            <a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#a4f52c5062bc2bd1208d3f291e59c4340" title="void lcd_send quartet Esta función permite el envio de un nibble a través de las terminales definidas...">lcd_send_quartet</a>(mode, temp);</div>
<div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;</div>
<div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;</div>
<div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;}</div>
<div class="line"><a name="l00232"></a><span class="lineno"><a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#a6842775ba83d166f02b8fef8bb63b1e6">  232</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#a6842775ba83d166f02b8fef8bb63b1e6" title="lcd_init() funcion para inicializar la LCD">lcd_init</a>(<span class="keywordtype">void</span>)</div>
<div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;{</div>
<div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;    <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> i;</div>
<div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;</div>
<div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;    <a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#a1ef9e90842eba3efc4939c320e70e19e">TRIS_E</a> = 0;</div>
<div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;    <a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#ae3b911eebadecba9f8f1512337092720">TRIS_CK</a> = 0;</div>
<div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;    <a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#adda8a2f498dbd512fdb2175688195bf4">TRIS_DAT</a>= 0;</div>
<div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;    <a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#aadf79f08aa7bd6622d96ea86e0b5cbfd">E_PIN</a> = 0;</div>
<div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;    </div>
<div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;    <a class="code" href="delay16_8c.html#a8aa473f8ae9a91df4bc9ea700983c72d">delay_ms</a>(10);</div>
<div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;</div>
<div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;</div>
<div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;    <span class="keywordflow">for</span>(i=0; i&lt; 3; i++)</div>
<div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;    {</div>
<div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;        <a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#a4f52c5062bc2bd1208d3f291e59c4340" title="void lcd_send quartet Esta función permite el envio de un nibble a través de las terminales definidas...">lcd_send_quartet</a>(<a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#ade18824d43ae8c08c02473b59e5c4e0c">LCD_COMMANDMODE</a>, <a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#a597d93b1f461dfdcdc2a6110bcf83b43">LCD_RESET</a>);</div>
<div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;        <a class="code" href="delay16_8c.html#a8aa473f8ae9a91df4bc9ea700983c72d">delay_ms</a>(5);</div>
<div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;    }</div>
<div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;</div>
<div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;    <a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#a4f52c5062bc2bd1208d3f291e59c4340" title="void lcd_send quartet Esta función permite el envio de un nibble a través de las terminales definidas...">lcd_send_quartet</a>(<a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#ade18824d43ae8c08c02473b59e5c4e0c">LCD_COMMANDMODE</a>, <a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#a4f601ab247d892dd185c8f7671dcc732">LCD_D4_BIT_CONF</a>);</div>
<div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;    <a class="code" href="delay16_8c.html#a8aa473f8ae9a91df4bc9ea700983c72d">delay_ms</a>(5);</div>
<div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;</div>
<div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;    <span class="keywordflow">for</span>(i=0; i &lt; <span class="keyword">sizeof</span>(<a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#a82fefca203b3328833e2f16cd169a1ed" title="Seccion de funciones En esta seccion se encuentran las funciones necesarias para implementar la inter...">LCD_INIT_STRING</a>); i++)</div>
<div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;    {</div>
<div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160;        <a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#a72d929ba55e510e11b84550a601f9c38" title="void lcd_send(char mode char dato)">lcd_send</a>(<a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#ade18824d43ae8c08c02473b59e5c4e0c">LCD_COMMANDMODE</a>, <a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#a82fefca203b3328833e2f16cd169a1ed" title="Seccion de funciones En esta seccion se encuentran las funciones necesarias para implementar la inter...">LCD_INIT_STRING</a>[i]);</div>
<div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;        <a class="code" href="delay16_8c.html#a8aa473f8ae9a91df4bc9ea700983c72d">delay_ms</a>(5);</div>
<div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160;</div>
<div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;</div>
<div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;    }</div>
<div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;</div>
<div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160;}</div>
<div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160;</div>
<div class="line"><a name="l00270"></a><span class="lineno"><a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#a54099c693a5c040647a1e971a61d19e5">  270</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#a54099c693a5c040647a1e971a61d19e5" title="funcion para posicionar el cursor del LCD en un localidad (x,y) particular la funcion esta preparada ...">lcd_gotoxy</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> x, <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> y)</div>
<div class="line"><a name="l00271"></a><span class="lineno">  271</span>&#160;{</div>
<div class="line"><a name="l00272"></a><span class="lineno">  272</span>&#160;    <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> ADDRESS= 0x00;</div>
<div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160;</div>
<div class="line"><a name="l00274"></a><span class="lineno">  274</span>&#160;    <span class="keywordflow">switch</span>(y)</div>
<div class="line"><a name="l00275"></a><span class="lineno">  275</span>&#160;    {</div>
<div class="line"><a name="l00276"></a><span class="lineno">  276</span>&#160;        <span class="keywordflow">case</span> 1:</div>
<div class="line"><a name="l00277"></a><span class="lineno">  277</span>&#160;            ADDRESS  = <a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#ac30f9eb729142201bec6ef0aa45e5c07">LCD_LINE1</a>;</div>
<div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160;        <span class="keywordflow">case</span> 2:</div>
<div class="line"><a name="l00280"></a><span class="lineno">  280</span>&#160;            ADDRESS = <a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#aee2c59879d4dca634a1ba6a2769e4ee6">LCD_LINE2</a>;</div>
<div class="line"><a name="l00281"></a><span class="lineno">  281</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00282"></a><span class="lineno">  282</span>&#160;        <span class="keywordflow">case</span> 3:</div>
<div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160;            ADDRESS = <a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#a3a2ee32835c7649e5da01563407d8665">LCD_LINE3</a>;</div>
<div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160;        <span class="keywordflow">case</span> 4:</div>
<div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160;            ADDRESS = <a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#a11fc99e0a8ac2eb3504e94b0a771234f">LCD_LINE4</a>;</div>
<div class="line"><a name="l00287"></a><span class="lineno">  287</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160;        <span class="keywordflow">default</span>:</div>
<div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160;            ADDRESS = <a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#ac30f9eb729142201bec6ef0aa45e5c07">LCD_LINE1</a>;</div>
<div class="line"><a name="l00290"></a><span class="lineno">  290</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00291"></a><span class="lineno">  291</span>&#160;</div>
<div class="line"><a name="l00292"></a><span class="lineno">  292</span>&#160;    }</div>
<div class="line"><a name="l00293"></a><span class="lineno">  293</span>&#160;    ADDRESS = (ADDRESS + x) -1;</div>
<div class="line"><a name="l00294"></a><span class="lineno">  294</span>&#160;    <a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#a72d929ba55e510e11b84550a601f9c38" title="void lcd_send(char mode char dato)">lcd_send</a>(<a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#ade18824d43ae8c08c02473b59e5c4e0c">LCD_COMMANDMODE</a>, ADDRESS);</div>
<div class="line"><a name="l00295"></a><span class="lineno">  295</span>&#160;}</div>
<div class="line"><a name="l00296"></a><span class="lineno">  296</span>&#160;</div>
<div class="line"><a name="l00305"></a><span class="lineno"><a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#afa7e36b95c43d603f510273ad077cbbe">  305</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#afa7e36b95c43d603f510273ad077cbbe" title="Funcion que envia un caracter a la lcd o puede enviar caracteres especiales.">lcd_putc</a>( <span class="keywordtype">char</span> c)</div>
<div class="line"><a name="l00306"></a><span class="lineno">  306</span>&#160;{</div>
<div class="line"><a name="l00307"></a><span class="lineno">  307</span>&#160;    <span class="keywordtype">char</span> lcd_line = 1;</div>
<div class="line"><a name="l00308"></a><span class="lineno">  308</span>&#160;    <span class="keywordflow">if</span>(c == <span class="stringliteral">&#39;ñ&#39;</span>) c= 0xee;<span class="comment">//ñ</span></div>
<div class="line"><a name="l00309"></a><span class="lineno">  309</span>&#160;    <span class="keywordflow">if</span>(c == <span class="stringliteral">&#39;º&#39;</span>) c=0xdf;<span class="comment">//º</span></div>
<div class="line"><a name="l00310"></a><span class="lineno">  310</span>&#160;    <span class="keywordflow">switch</span>(c)</div>
<div class="line"><a name="l00311"></a><span class="lineno">  311</span>&#160;    {</div>
<div class="line"><a name="l00312"></a><span class="lineno">  312</span>&#160;</div>
<div class="line"><a name="l00313"></a><span class="lineno">  313</span>&#160;        <span class="keywordflow">case</span> <span class="charliteral">&#39;\f&#39;</span>:</div>
<div class="line"><a name="l00314"></a><span class="lineno">  314</span>&#160;            <a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#a72d929ba55e510e11b84550a601f9c38" title="void lcd_send(char mode char dato)">lcd_send</a>(<a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#ade18824d43ae8c08c02473b59e5c4e0c">LCD_COMMANDMODE</a>, <a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#a6aa8aa2057294b7d06088e834299b369">LCD_CLEAR</a>);</div>
<div class="line"><a name="l00315"></a><span class="lineno">  315</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00316"></a><span class="lineno">  316</span>&#160;        <span class="keywordflow">case</span> <span class="charliteral">&#39;\n&#39;</span>:</div>
<div class="line"><a name="l00317"></a><span class="lineno">  317</span>&#160;            <a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#a54099c693a5c040647a1e971a61d19e5" title="funcion para posicionar el cursor del LCD en un localidad (x,y) particular la funcion esta preparada ...">lcd_gotoxy</a>(1,++lcd_line);</div>
<div class="line"><a name="l00318"></a><span class="lineno">  318</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00319"></a><span class="lineno">  319</span>&#160;        <span class="keywordflow">case</span> <span class="charliteral">&#39;\b&#39;</span>:</div>
<div class="line"><a name="l00320"></a><span class="lineno">  320</span>&#160;            <a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#a72d929ba55e510e11b84550a601f9c38" title="void lcd_send(char mode char dato)">lcd_send</a>(<a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#ade18824d43ae8c08c02473b59e5c4e0c">LCD_COMMANDMODE</a>, <a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#a70265836776d5309f83565554d34ce99">LCD_CURSOR_IZQ</a>);</div>
<div class="line"><a name="l00321"></a><span class="lineno">  321</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00322"></a><span class="lineno">  322</span>&#160;        <span class="keywordflow">default</span>:</div>
<div class="line"><a name="l00323"></a><span class="lineno">  323</span>&#160;            <a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#a72d929ba55e510e11b84550a601f9c38" title="void lcd_send(char mode char dato)">lcd_send</a>(<a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#a16680e6a18dd96812af02eb0eaaa566a">LCD_CHARMODE</a>,c);</div>
<div class="line"><a name="l00324"></a><span class="lineno">  324</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00325"></a><span class="lineno">  325</span>&#160;    }</div>
<div class="line"><a name="l00326"></a><span class="lineno">  326</span>&#160;}</div>
<div class="line"><a name="l00327"></a><span class="lineno">  327</span>&#160;</div>
<div class="line"><a name="l00337"></a><span class="lineno"><a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#ab5955cef5afcf6d28b41015ecec95b4f">  337</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#ab5955cef5afcf6d28b41015ecec95b4f" title="Funcion que permite personalizar la presntacion del cursor en el LCD.">lcd_setcursor_vb</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> visible, <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> blink)</div>
<div class="line"><a name="l00338"></a><span class="lineno">  338</span>&#160;{</div>
<div class="line"><a name="l00339"></a><span class="lineno">  339</span>&#160;    <a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#a72d929ba55e510e11b84550a601f9c38" title="void lcd_send(char mode char dato)">lcd_send</a>(<a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#ade18824d43ae8c08c02473b59e5c4e0c">LCD_COMMANDMODE</a>, <a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#ae880f6f2b89c2c2c7c8f030a868edd10">LCD_DIS_ON</a> | (visible &lt;&lt; 1) | blink);</div>
<div class="line"><a name="l00340"></a><span class="lineno">  340</span>&#160;}</div>
<div class="line"><a name="l00341"></a><span class="lineno">  341</span>&#160;</div>
<div class="line"><a name="l00348"></a><span class="lineno"><a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#a7cdf1d76c734edc7f15e925cd949b936">  348</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#a7cdf1d76c734edc7f15e925cd949b936" title="La funcion puts pone en cola de impresion a lcd una cadena de caracteres.">lcd_puts</a>(<span class="keywordtype">char</span> * ptr)</div>
<div class="line"><a name="l00349"></a><span class="lineno">  349</span>&#160;{</div>
<div class="line"><a name="l00350"></a><span class="lineno">  350</span>&#160;    <span class="keywordflow">while</span>(*ptr)</div>
<div class="line"><a name="l00351"></a><span class="lineno">  351</span>&#160;    {</div>
<div class="line"><a name="l00352"></a><span class="lineno">  352</span>&#160;        <a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#afa7e36b95c43d603f510273ad077cbbe" title="Funcion que envia un caracter a la lcd o puede enviar caracteres especiales.">lcd_putc</a>(*ptr);</div>
<div class="line"><a name="l00353"></a><span class="lineno">  353</span>&#160;        ptr++;</div>
<div class="line"><a name="l00354"></a><span class="lineno">  354</span>&#160;    }</div>
<div class="line"><a name="l00355"></a><span class="lineno">  355</span>&#160;}</div>
<div class="line"><a name="l00356"></a><span class="lineno">  356</span>&#160;</div>
<div class="line"><a name="l00357"></a><span class="lineno"><a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#a620a9b97859a00ba9d25bd520bf5a173">  357</a></span>&#160;<span class="keywordtype">char</span> <a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#a620a9b97859a00ba9d25bd520bf5a173">lcd_hexa</a>(<span class="keywordtype">char</span> a)</div>
<div class="line"><a name="l00358"></a><span class="lineno">  358</span>&#160;{</div>
<div class="line"><a name="l00359"></a><span class="lineno">  359</span>&#160;    <span class="keywordflow">if</span>(a &gt; 9)</div>
<div class="line"><a name="l00360"></a><span class="lineno">  360</span>&#160;        a+= 55;</div>
<div class="line"><a name="l00361"></a><span class="lineno">  361</span>&#160;    <span class="keywordflow">else</span></div>
<div class="line"><a name="l00362"></a><span class="lineno">  362</span>&#160;        a+= 48;</div>
<div class="line"><a name="l00363"></a><span class="lineno">  363</span>&#160;    <span class="keywordflow">return</span> a;</div>
<div class="line"><a name="l00364"></a><span class="lineno">  364</span>&#160;}</div>
<div class="line"><a name="l00365"></a><span class="lineno">  365</span>&#160;</div>
<div class="line"><a name="l00366"></a><span class="lineno">  366</span>&#160;<span class="preprocessor">#endif // fLCD3bSDCC_h</span></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generado el Martes, 4 de Junio de 2013 02:07:24 para Automatizacion de medición de susceptibilidad magnética por &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.3.1
</small></address>
</body>
</html>
